﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
/// Summary description for clsCapNhatTacVu
/// </summary>
public class clsCapNhatTacVu
{
    SoLienLacDataContext db = new SoLienLacDataContext();
	public clsCapNhatTacVu()
	{
		
	}
    public void ThemTacVu(string tentv, string ndtv, DateTime ngay,string magv)
    {
        TacVus tv = new TacVus();
        tv.MaTacVu = -1;
        tv.TenTacVu = tentv;
        tv.NoiDung = ndtv;
        tv.NgayThang = ngay;
        tv.MaCanBoGV = magv;
        db.TacVus.InsertOnSubmit(tv);
        db.SubmitChanges();
    }
    public void ThemTacVuAdmin(string tentv, string ndtv, DateTime ngay, int maAd)
    {
        TacVuQuanTri tv = new TacVuQuanTri();
        tv.MaTacVu = -1;
        tv.TenTacVu = tentv;
        tv.NoiDung = ndtv;
        tv.NgayThang = ngay;
        tv.MaAdmin = maAd;
        db.TacVuQuanTris.InsertOnSubmit(tv);
        db.SubmitChanges();
    }

    public void ThemTacVuAdmin(string tentv, string noidung, DateTime dateTime, string tengv)
    {
        throw new NotImplementedException();
    }
}